package fever.plugin
{
	import com.bourre.events.ApplicationBroadcaster;
	import com.bourre.events.EventBroadcaster;
	import com.bourre.plugin.AbstractPlugin;	

	/**
	 * <strong>FeverPlugin</strong> extends <strong>Lowra</strong> AbtractPlugin 
	 * to add <strong>Fever RS</strong> features.
	 */
	public class FeverPlugin extends AbstractPlugin
	{
		//--------------------------------------------------------------------
		// Private properties
		//--------------------------------------------------------------------
		
		/** @private */
		private var _resource : PluginResources;
		
		
		//--------------------------------------------------------------------
		// Public API
		//--------------------------------------------------------------------
		
		/**
		 * Constructor.
		 */
		public function FeverPlugin() 
		{
			super();
			
			_resource = PluginResources.getInstance( this );
		}
		
		/**
		 * Returns plugin resources.
		 */
		public function getResources() : PluginResources
		{
			return _resource;
		}
		
		
		//--------------------------------------------------------------------
		// Private implementations
		//--------------------------------------------------------------------
		
		protected function _getPublicBroadcaster() : EventBroadcaster
		{
			return ApplicationBroadcaster.getInstance().getChannelDispatcher( getChannel(), this );	
		}
	}
}